package app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import app.dao.FileDao;
import app.domain.FileInfo;
import app.service.FileService;

@Service
public class FileServiceImpl implements FileService{
    @Autowired
    private FileDao fileDao;
	@Override
	public int addFileInfo(FileInfo fileInfo) {
		fileDao.addFile(fileInfo);
		return fileInfo.getId();
	}
}
